package main

import "fmt"

func main() {
	//var x = make([]float64, 5)
	//fmt.Println("Capcity:", cap(x), "length:", len(x))

	//var y = make([]float64, 5, 10)
	//fmt.Println("Capcity:", cap(y), "length:", len(y))

	//for i := 0; i < len(x); i++ {
	//	x[i] = float64(i)
	//}

	//fmt.Println(x)

	//for i := 0; i < len(y); i++ {
	//	y[i] = float64(i)
	//}

	//fmt.Println(y)

	//var x = [5]int{1, 2, 3, 4, 5}

	//var s1 = x[1:3]
	//var s2 = x[:3]
	//var s3 = x[2:]
	//var s4 = x[:]

	//fmt.Println(s1)
	//fmt.Println(s2)
	//fmt.Println(s3)
	//fmt.Println(s4)
	var x = make([]float64, 5, 10)

	for i := 0; i < len(x); i++ {
		x[i] = float64(i)
	}

	fmt.Println(cap(x), len(x), x)

	x = append(x, 6, 7, 8, 9, 10)

	fmt.Println(cap(x), len(x), x)
}
